<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
  <head>
    
     <script type="text/javascript" src="resources/js/dtree.js"></script>
    <title>显示树形状</title>
    
  </head>
  
  <body>
  <div class="pkg">
            	<h3>自定义</h3>
                <div class="pkg-body">
  <div class="dtree">
  <a class="ex" href="${ctx}/welcome.jsp">欢迎页面</a>
			<script type="text/javascript">
				d = new dTree('d');
				   d.add(0,-1,'操作权限');
				  <c:forEach items="${list}" var="pri" varStatus="var" >
				   d.add(${pri.qid},${pri.superid},'${pri.authname}','<%=request.getContextPath()%>${pri.description}','','main');
				   
				</c:forEach>
				 
				document.write(d);
			</script>
		</div>
		</div>
            </div>
  </body>
</html>